import request from '@/utils/request'

// 查询任务列表
export function getManager(query) {
    return request({
        url: '/routing/xunjian/manager/list',
        method: 'get',
        params: query
    })
}

// 查询任务详细
export function getmanager(managerId) {
    return request({
        url: '/routing/xunjian/manager/' + managerId,
        method: 'get'
    })
}

// 新增任务
export function addmanager(data) {
    return request({
        url: '/routing/xunjian/manager',
        method: 'post',
        data: data
    })
}


// 删除任务
export function delmanager(managerId) {
    return request({
        url: '/routing/xunjian/manager/' + managerId,
        method: 'delete'
    })
}

